package com.way.cloud.service;

import com.way.cloud.domain.Customer;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;

public interface CustomerService {

    Flux<Customer> findAllCustomers();

    Mono<Customer> findCustomerById(Integer id);

    Flux<Customer> findCustomerByLastName(String lastName);

    Mono<Customer> saveCustomer(Customer customer);

    Mono<Void> updateCustomer(Integer id, Customer customer);

    Mono<Void> deleteCustomerById(Integer id);

}
